Skip to content

feat: migrate back to prost#6363

Draft
jxs wants to merge 9 commits intolibp2p:masterfrom
macladson:prost
Draft

feat: migrate back to prost#6363
jxs wants to merge 9 commits intolibp2p:masterfrom
macladson:prost

Conversation

@jxs
Copy link
Copy Markdown
Member

@jxs jxs commented Apr 2, 2026

Description

In #3312, we migrated from prost to quick-protobuf primarily to eliminate the need for the protoc dependency on CI for generating Rust code from .proto files, as we were not versioning them at the time.

However, quick-protobuf has been unmaintained for years, and we should transition to a more actively maintained protobuf implementation. By versioning the generated Rust code from the .proto files, we can limit the need for protoc to only when the .proto files are modified and the Rust code needs to be regenerated.

To address this, @macladson has generously taken the time to draft a migration plan to move us back to prost.

@jxs jxs marked this pull request as draft April 2, 2026 14:51
@jxs jxs changed the title chore: migrate back to prost feat: migrate back to prost Apr 2, 2026
@romac
Copy link
Copy Markdown

romac commented Apr 28, 2026

Note that there exists a pure Rust Protobuf compiler as a library for use with prost-build, in case you'd rather not version the generated Rust code (or just eschew the protoc dependency altogether): https://lib.rs/crates/protox

Not my crate but been using it for a while and it's worked great so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants